package com.fengniu.ejb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

//@MappedSuperclass
//public abstract class GeneRelation extends GeneEntity {
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class GeneRelation extends GeneEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2653683640965222612L;

	@Column(nullable = false)
	Integer relationId;

	private Long sequence;

	private String name;

	private Integer rank; // 关系排名

	private Boolean isTop; // 关系排名：是否置顶

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Long getSequence() {
		return sequence;
	}

	public void setSequence(Long sequence) {
		this.sequence = sequence;
	}

	public String getName() {
		return name;
	}

	public void setName(String title) {
		this.name = title;
	}

	public Integer getRelationId() {
		return relationId;
	}

	public void setRelationId(Integer relationId) {
		this.relationId = relationId;
	}

	public Boolean getIsTop() {
		return isTop;
	}

	public void setIsTop(Boolean isTop) {
		this.isTop = isTop;
	}

}
